package top.mcwebsite.playandroid.business.tutorial.impl.api

import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
import top.mcwebsite.playandroid.business.articles.api.model.ArticleModel
import top.mcwebsite.playandroid.business.tutorial.api.model.TutorialModel
import top.mcwebsite.playandroid.common.network.model.PageModel
import top.mcwebsite.playandroid.common.network.model.RespModel

interface TutorialApi {
    @GET("/chapter/547/sublist/json")
    suspend fun getTutorials(): RespModel<List<TutorialModel>>

    @GET("article/list/{page}/json")
    suspend fun getTutorialMenus(
        @Path("page") page: Int,
        @Query("cid") cid: Long,
        @Query("order_type") orderType: Int = 1
    ): RespModel<PageModel<ArticleModel>>
}